package com.example.yuejian.yuejian.activity;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.Toast;

import com.example.yuejian.yuejian.R;

public class AboutActivity extends AppCompatActivity {
        private LinearLayout update;
        private ImageView btn_back;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_about);
        initViews();
        initEvents();
        back();
    }
    private void initViews()
    {
       update=(LinearLayout)findViewById(R.id.about_yuejian_update);
    }
    private void initEvents()
    {
        update.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Toast.makeText(getApplication(),"当前为最新版本",Toast.LENGTH_SHORT).show();
            }
        });
    }
    private void back()
    {
        btn_back=(ImageView)findViewById(R.id.imgBtn_about_back);
        btn_back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                finish();
            }
        });

    }
}
